package code09_final和抽象类;

public class Truck extends MotoVehicle {

	private int ton; // 吨

	public Truck(String no, String name, int ton) {
		super(no, name);
		this.ton = ton;
	}

	public int getTon() {
		return ton;
	}

	public void setTon(int ton) {
		this.ton = ton;
	}

	@Override
	public int calcRent(int day) {
		return 50 * ton * day;
	}

}
